package com.hqyj.controller;


import com.hqyj.pojo.Warehousing;
import com.hqyj.service.IWarehousingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;
import java.util.HashMap;

/**
 * <p>
 * 入库执行记录 前端控制器
 * </p>
 *
 * @author rock
 * @since 2021-10-21
 */
@RestController
@RequestMapping("/warehousing")
public class WarehousingController {

    //注入依赖
    @Autowired(required = false)
    IWarehousingService warehousingService;

    //加载分页页面
    @RequestMapping("/warehousingList")
    public HashMap<String,Object> warehousingList(Warehousing warehousing){
        System.err.println("warehousing:"+warehousing);
        return warehousingService.select(warehousing);
    }

    //删除
    @RequestMapping("/del")
    public HashMap<String ,Object> warehousingDel(Warehousing warehousing){
        System.out.println("delete:"+warehousing);
        return warehousingService.del(warehousing);
    }
}

